<div class="tab-box">
    <ul>
        <li ng-repeat="(i,item) in tabMenu.children track by $index" 
        	ui-sref="{{item.state}}({id:item.id})"
        	ng-class="{active:i==1}">
        	{{item.name}}
        </li>
    </ul>
</div>

<div class="section-search">
	<span class="line-block">
        <ui-select ng-model="params.loan_type" placeholder="时间类型">
        	<ui-option value="-1">时间类型</ui-option>
            <ui-option value="1">提交时间</ui-option>
            <ui-option value="2">到账日期</ui-option>
        </ui-select>
    </span>
	<span class="line-block">
        <ui-datepicker error-tis="" placeholder="开始时间" ng-model="params.start_time"></ui-datepicker>
    </span>
	<span class="line-block">
        <ui-datepicker  placeholder="结束时间" ng-model="params.end_time"></ui-datepicker>
    </span>
    <span class="line-block">
        <ui-select ng-model="params.loan_type" placeholder="产品类型">
        	<ui-option value="-1">产品类型</ui-option>
            <ui-option value="1">车贷</ui-option>
            <ui-option value="2">房贷</ui-option>
            <ui-option value="2">信贷</ui-option>
        </ui-select>
    </span>

    <span class="line-block filed">
        <ui-select ng-model="params.type">
            <ui-option value="-1">选择字段</ui-option>
            <ui-option value="1">订单编号</ui-option>
            <ui-option value="2">收款人</ui-option>
            <ui-option value="3">收款卡号</ui-option>
        </ui-select>
    </span>
    <span class="line-block" style="width: 220px;">
        <input type="text" class="form-control" placeholder="请先选择左侧要搜索的字段" ng-model="params.keyword" />
    </span>
    <span class="line-block">
        <button class="btn btn-success search-btn" ng-click="searchHandle()"><em class="glyphicon glyphicon-search"></em></button>
    </span>
</div>
<div class="dataList">
    <table class="table">
        <thead>
        <tr>
        	<th>全选</th>
            <th>操作</th>
            <th>提交时间</th>
            <th>放款日期</th>
            <th>贷款金额</th>
            <th>贷款期数</th>
            <th>放款金额</th>
            <th>首次扣费</th>
            <th>收款人</th>
            <th>收款卡号</th>
            <th>收款银行</th>
            <th>订单编号</th>
            <th>操作人</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-if="param1.dataList.length<1" class="_loading">
            <td colspan="10">
                <div class="no_data">暂时找不到数据</div>
            </td>
        </tr>
        <tr ng-repeat="(i,item) in param1.dataList track by $index " ng-click="$_fn.tabClick($event)">
        	<td>
              <input type="checkbox" name="ch_id" value="{{item.id}}">
          	</td>
            <td>
        	  <button class="btn btn-success search-btn" ng-click="$event.stopPropagation();">
          	          查看详情
              </button>
                <!--<dropdown placeholder="请选择">
                    <li ng-repeat="(i,list) in subMenu track by $index" ng-if="list.state==1" 
                    	ng-click="operation(list.path,item.id)">
                    	{{list.name}}
                    </li>
                </dropdown>-->
            </td>
            <td>{{item.credit_time}}</td>
            <td>{{item.loan_time}}</td>
            <td>{{item.apply_money | toRMB}}</td>
            <td>{{item.num}}</td>
            <td>{{item.loan_amount | toRMB}}</td>
            <td>{{item.fristPayment | toRMB}}</td>
            <td>{{item.payee}}</td>
            <td>{{item.account}}</td>
            <td>{{item.bank}}</td>
            <th>{{item.loan_number}}</th>
            <th>{{item.credit_man}}</th>
        </tr>
        </tbody>
    </table>
</div>
<div class="page" ng-if="param1.dataList.length>0">
    <div class="operation">
        <label><input type="checkbox" ng-click="$_fn.ch_id_all($event,'ch_id')">全选</label>
        <!--<dropdown placeholder="批量操作">
            <li>批量删除</li>
            <li>批量撤销</li>
        </dropdown>-->
        <dropdown placeholder="批量操作" ng-click="$event.stopPropagation();">
          <li ng-repeat="(i,items) in subMenu track by $index" ng-if="items.state==-1" ng-click="operation(items.path, {batchOper:'true'})">{{items.name}}</li>
      </dropdown>
    </div>
    <pages total="{{param1.orderList.total}}" current="param1.orderList.pageNum" page-size="{{param1.orderList.pageSize}}"></pages>
</div>
